package com.demo.repository;

import com.demo.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

/**
 * @Author :蕉绿
 * @Date : 2023/2/8 8:40
 * @Version : V1.0
 * @Description :
 */

@Repository
public class UserRepository {

    @Bean
    public User user1() {
        User user = new User();
        user.setName("李四");
        user.setId(5);
        return user;
    }


}
